SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 52216: FSA Daily Flows (047) Report Fails with Syntax Error in Time Bucket SQL

DetailsAboutRate It

If you run the FSA Daily Flows (047) report more than once when using the SAS® Risk Reporting Repository for Banking sample data, then every attempt after the first fails with the following errors in the log:

MPRINT(RMB_FSA047_REPORT): proc sql noprint; NOTE: Line generated by the invoked macro "RMB_FSA047_REPORT". 21 WORK.INTERVAL_TIME_BUCKETS as X, RD_RPT.TIME_BUCKET_DIM as T where X.time_bucket_group_sk = &TIME_BUCKET_GROUP_SK and X.time_bucket_sk _ 22 76 21 ! = T.time_bucket_sk order by 1 ; quit; proc MPRINT(RMB_FSA047_REPORT): create table WORK.TIME_BUCKETS as select X.sequence_no, X.time_bucket_sk, intnx(T.tb_start_length_uom_cd, datepart(dhms(17822,00,00,00)), T.tb_start_length_no, 'SAME') as actual_date from WORK.INTERVAL_TIME_BUCKETS as X, RD_RPT.TIME_BUCKET_DIM as T where X.time_bucket_group_sk = and X.time_bucket_sk = T.time_bucket_sk order by 1 ; ERROR 22-322: Syntax error, expecting one of the following: !, !!, &, (, *, **, +, -, /, <, <=, <>, =, >, >=, AND, EQ, EQT, GE, GET, GROUP, GT, GTT, HAVING, LE, LET, LT, LTT, NE, NET, OR, ORDER, ^=, |, ||, ~=. ERROR 76-322: Syntax error, statement will be ignored.
As a workaround, you can do the following:
  1. Create a new time grid with this bucketing scheme:
    bucketing scheme
  2. Change the time grid that is used by the FSA047 reporting analysis task to the one that you created in step 1.
  3. Run the FSA047 reporting analysis task.
  4. Run the FSA Daily Flows report.
The report should complete without any errors this time and for any subsequent runs.

Note that this workaround is necessary only when you load and use the SAS Risk Reporting Repository for Banking sample data.



Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemSAS Risk Management for BankingMicrosoft Windows 8 Pro 32-bit3.23.2_M19.4 TS1M1
Microsoft Windows 8 Enterprise x643.23.2_M19.4 TS1M1
Microsoft Windows 8 Enterprise 32-bit3.23.2_M19.4 TS1M1
Microsoft® Windows® for x643.23.2_M19.4 TS1M1
Microsoft Windows 8 Pro x643.23.2_M19.4 TS1M1
Microsoft Windows 8.1 Enterprise 32-bit3.23.2_M19.4 TS1M1
Microsoft Windows 8.1 Enterprise x643.23.2_M19.4 TS1M1
Microsoft Windows 8.1 Pro3.23.2_M19.4 TS1M1
Microsoft Windows 8.1 Pro 32-bit3.23.2_M19.4 TS1M1
Microsoft Windows Server 20083.23.2_M19.4 TS1M1
Microsoft Windows Server 2008 R23.23.2_M19.4 TS1M1
Microsoft Windows Server 2008 for x643.23.2_M19.4 TS1M1
Microsoft Windows Server 2012 Datacenter3.23.2_M19.4 TS1M1
Microsoft Windows Server 2012 R2 Datacenter3.23.2_M19.4 TS1M1
Microsoft Windows Server 2012 R2 Std3.23.2_M19.4 TS1M1
Microsoft Windows Server 2012 Std3.23.2_M19.4 TS1M1
Windows 7 Enterprise 32 bit3.23.2_M19.4 TS1M1
Windows 7 Enterprise x643.23.2_M19.4 TS1M1
Windows 7 Home Premium 32 bit3.23.2_M19.4 TS1M1
Windows 7 Home Premium x643.23.2_M19.4 TS1M1
Windows 7 Professional 32 bit3.23.2_M19.4 TS1M1
Windows 7 Professional x643.23.2_M19.4 TS1M1
Windows 7 Ultimate 32 bit3.23.2_M19.4 TS1M1
Windows 7 Ultimate x643.23.2_M19.4 TS1M1
64-bit Enabled AIX3.23.2_M19.4 TS1M1
64-bit Enabled Solaris3.23.2_M19.4 TS1M1
Linux for x643.23.2_M19.4 TS1M1
Solaris for x643.23.2_M19.4 TS1M1
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.